package com.icart.entities;

import javax.persistence.*;

@Entity
@Table(name = "bi_carline", schema = "ams", catalog = "")
public class BiCarlineEntity {
    private String carlineid;
    private String carlinename;

    @Id
    @Column(name = "carlineid")
    public String getCarlineid() {
        return carlineid;
    }

    public void setCarlineid(String carlineid) {
        this.carlineid = carlineid;
    }

    @Basic
    @Column(name = "carlinename")
    public String getCarlinename() {
        return carlinename;
    }

    public void setCarlinename(String carlinename) {
        this.carlinename = carlinename;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BiCarlineEntity that = (BiCarlineEntity) o;

        if (carlineid != null ? !carlineid.equals(that.carlineid) : that.carlineid != null) return false;
        if (carlinename != null ? !carlinename.equals(that.carlinename) : that.carlinename != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = carlineid != null ? carlineid.hashCode() : 0;
        result = 31 * result + (carlinename != null ? carlinename.hashCode() : 0);
        return result;
    }
}
